package org.eliza.base.enumsx

import kotlin.enums.enumEntries


enum class ErrorClass(val type: Int) {
    BYTE(1),
    SHORT(2),
    INT32(4),
    INT64(8),
}

fun main() {
    val enumEntries = enumEntries<ErrorClass>()
    println(enumEntries)
    for (error in EchoError.entries) {
        println(error)
    }
    println("=========")
    println(ErrorClass.INT32 == ErrorClass.INT32)
    println(ErrorClass.INT32.type)
    println(ErrorClass.INT32.name)
    println(ErrorClass.INT32.ordinal)
}